//
//  GoodsCell.m
//  lisure0.1
//
//  Created by xalo on 16/4/25.
//  Copyright © 2016年 Mr.wangYongxu. All rights reserved.
//

#import "GoodsCell.h"
#import "GoodsModel.h"

@interface GoodsCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;

@property (weak, nonatomic) IBOutlet UIButton *buyBtn;

@end

@implementation GoodsCell


-(void)setcellWithModel:(GoodsModel*)model{

    [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.coverimg] placeholderImage:nil];
    self.titleLable.text = model.title;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
